// import React from "react";
import './index.less';
import { Button } from 'antd-mobile';
import { useGoTo } from '@/hooks';
import { ROUTE_KEY } from '@/routes/menu';

const SuccessPage = () => {
  const { go } = useGoTo();
  const Home = () => {
    go(ROUTE_KEY.HOME);
  };
  return (
    <div className="payment-success">
      <div className="success-icon">&#10004;</div>
      <h2>支付成功</h2>
      <p>感谢您的购买！</p>
      <Button className="button" onClick={() => Home()}>回到首页</Button>
    </div>
  );
};

export default SuccessPage;
